<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    canvas {
      border: 1px solid #000000;
    }
  </style>
</head>
<body>
<script>
window.addEventListener('keydown', function (event) {
  console.log(event.key)
})
</script>
</body>
</html>
